import cloud from '@lafjs/cloud'
import { baiwangInvoice } from '@/uni/invoice/baiwangInvoiceUtils'

export default async function (ctx: FunctionContext) {
  const json_data = {
    platNsrsbh: "91310114MA1GWQQE9M",
    key: ctx.body.key
  };

  let resp = await baiwangInvoice({
    data: json_data,
    url: "/cloud/autoMatchCompany"
  })
  return cloud.utils.requestReturn({ data: resp })
}